<?php
class mediaComponents extends sfComponents {
    public function executeList(sfWebRequest $request) {
      $this->host = $request->getHost();
      $c = new Criteria();
      $c->addDescendingOrderByColumn(VanillaMediaImagePeer::CREATED_AT);
      $pager = new sfPropelPager('VanillaMediaImage', 4);
      $pager->setCriteria($c);
      $pager->setPage($this->getRequestParameter('page', 1));
      $pager->init();
      $this->pager = $pager;
    }
}
?>
